﻿using Panuon.UI.Silver;
using System.Windows;

namespace github.heerheer.card2.UI.Views
{
    /// <summary>
    /// InputDialog.xaml 的交互逻辑
    /// </summary>
    public partial class InputDialog : Window
    {
        public string Value { get; private set; }
        public InputDialog(string desc)
        {
            InitializeComponent();
            TextBoxHelper.SetWatermark(InputBox, desc);
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            Value = InputBox.Text;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;

        }
    }
}
